package com.mysen.sso.service;

import java.util.List;
import com.mysen.model.Response;
import com.mysen.sso.model.Permission;
import com.mysen.sso.model.User;

public interface UserService {

	Response<?> selectByPage(User record);

    int deleteById(String userId);
    
    int updateById(User record);

    User save(User record);

    User selectById(String userId);
    
	User selectByOpenId(String openId);

	boolean existsUserByName(String userName);

	User loginByOpenId(User param);

	User loginByWeb(User param);

	void addRoles(User user);

	List<Permission> selectPermissions(User user);
}
